package com.itheima.service;


import com.itheima.config.SpringConfig;
import com.itheima.pojo.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.jws.soap.SOAPBinding;
import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SpringConfig.class)
public class Text {

    @Autowired
    private UserService userService;

    @Test
    public void show (){

        List<User> users = userService.selectAll();


        userService.deleteById(3);

        System.out.println(users);


    }
}
